package com.nidu.demo.oauth2.dto;

import com.nidu.demo.base.BaseCO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "Oauth2 Client客户端对象")
public class OAuth2ClientCO extends BaseCO {

    /**
     * 主键ID
     */
    @Schema(description = "主键ID", example = "主键ID")
    private Long id;

    /**
     * 客户端ID
     */
    @Schema(description = "客户端ID", example = "client123")
    private Long clientId;

    /**
     * 客户端密钥
     */
    @Schema(description = "客户端密钥", example = "secret123")
    private String clientSecret;

    /**
     * 重定向URI
     */
    @Schema(description = "重定向URI", example = "https://example.com/callback")
    private String redirectUri;

    /**
     * 授权范围
     */
    @Schema(description = "授权范围", example = "read write")
    private List<String> scope;

    /**
     * 状态(0:禁用,1:启用)
     */
    @Schema(description = "状态(0:禁用,1:启用)", example = "1")
    private Integer status;
}